import { createApp } from 'vue';
import ArcoVue from '@arco-design/web-vue';
import ArcoVueIcon from '@arco-design/web-vue/es/icon';
import globalComponents from '@/components';
import router from './router';
import store from './store';
import i18n from './locale';
import directive from './directive';
import './mock';
import App from './App.vue';
import '@arco-design/web-vue/dist/arco.css';
import '@/assets/style/global.less';
import '@/api/interceptor';
import myTable from '@/components/table/index.vue'
import headMenu from '@/components/headMenu/headMenu.vue';
import popUps from '@/components/table/components/pop-ups.vue'
import uploadImg from '@/components/uplod/uplodImg.vue';
import wangedit from '@/components/wangedit/index.vue'
const app = createApp(App);

app.use(ArcoVue, {});
app.use(ArcoVueIcon);


app.use(store);
app.use(i18n);
app.use(globalComponents);
app.use(directive);
app.use(router);
app.component("myTable",myTable)
app.component("headMenu",headMenu)
app.component("popUps",popUps)
app.component("uploadImg",uploadImg)
app.component("wangedit",wangedit);

app.mount('#app');

// const projectPath = path.resolve(__dirname);
// console.log(projectPath);